package com.daka.service;

import com.daka.entity.User;
import com.daka.vo.response.DataResponseVo;
import com.daka.vo.response.user.UserDetailVo;

import java.util.List;

/**
 * @author beliveli on 2016/4/6 0006.
 */
public interface UserService {
    List<User> selectAll();

    List<User> selectByOrgId(int orgId);

    List<User> selectPageByOrgId(Integer orgId, String userName, Integer pageIndex, Integer pageSize);

    int selectCountByOrgId(Integer orgId, String userName);

    DataResponseVo<UserDetailVo> login(User userParam);

    User selectByPhone(String userName);

    User selectById(int manageId);

    int updatePasswordById(User user);

    User updateOrgIdById(Integer orgId, Integer userId);

    User updateStatus(Integer userId);

    User save(User user);

    String sendVerifierCode(String mobile);

    Boolean checkVerifierCode(String mobile, String code);
}
